/*
 * Shared design tokens + cross-block primitives (site column, button,
 * section title, category pill), mirrored from the theme
 * (tire-agent-theme assets/src/css/{variables,structure}.css and
 * blocks/{button,section-title,category-pill}.css, flattened) so every
 * tire-agent-blocks/* block renders correctly on surfaces that load only
 * registered block styles: content-area pages, the block editor, /deals/*.
 * Registered as the `tire-agent-blocks-shared` handle; each block lists it
 * ahead of its own style.css (specs/blocks-self-contained-css.md).
 * Identical declarations to the theme bundle — duplication is idempotent.
 */

:root {
  --ta-color-primary: hsla(221, 77%, 41%, 1);
  --ta-color-neutral-100: hsla(0, 0%, 100%, 1);
  --ta-color-neutral-200: hsla(0, 0%, 98%, 1);
  --ta-color-neutral-300: hsla(0, 0%, 85%, 1);
  --ta-color-neutral-400: hsla(0, 0%, 44%, 1);
  --ta-color-neutral-900: hsla(231, 11%, 13%, 1);
  --ta-color-accent-warm: hsla(39, 100%, 57%, 1);
  --ta-color-accent-cool: hsla(124, 98%, 35%, 1);
  --ta-color-accent-teal: hsla(168, 99%, 48%, 1);
  --ta-color-border: var(--ta-color-neutral-300);
  --ta-color-shadow: hsla(0, 0%, 91%, 1);
  --ta-color-link: var(--ta-color-primary);
  --ta-color-link-active: var(--ta-color-primary);
  --ta-color-button: var(--ta-color-primary);
  --ta-color-button-hover: hsla(221, 71%, 48%, 1);
  --ta-color-button-warm: var(--ta-color-accent-warm);
  --ta-color-button-warm-hover: hsla(39, 100%, 47%, 1);
  --ta-color-button-bright: var(--ta-color-accent-teal);
  --ta-color-button-bright-hover: rgb(0, 206, 165);

  --ta-max-width-site: 1456px;
  --ta-site-gutter: 28px;

  --ta-font-family: 'Lato', 'Arial', 'Helvetica', sans-serif;
}

/* the container that centers content in the browser (theme structure.css) */
.site-column {
  padding-inline: var(--ta-site-gutter);
  max-width: var(--ta-max-width-site);
  margin-inline: auto;
  width: 100%;
}

/* ---- button (theme blocks/button.css, flattened; .posts variants kept so
   specificity matches the theme on blog surfaces) ---- */
.ta-block-button,
a.ta-block-button,
.posts .ta-block-button,
.posts a.ta-block-button {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding-block: 16px;
  padding-inline: 32px;
  border: none;
  border-radius: 10px;
  background-color: var(--ta-color-button);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--ta-color-neutral-100) !important;
  text-decoration: none;
  text-align: center;
}

.ta-block-button:hover,
a.ta-block-button:hover {
  background-color: var(--ta-color-button-hover);
  color: var(--ta-color-neutral-100);
}

.ta-block-button--secondary,
a.ta-block-button--secondary {
  background: transparent;
  border: 2px solid var(--ta-color-primary);
  color: var(--ta-color-primary) !important;
}

.ta-block-button--secondary:hover,
a.ta-block-button--secondary:hover {
  background-color: var(--ta-color-primary);
  color: var(--ta-color-neutral-100) !important;
}

.ta-block-button--warm,
a.ta-block-button--warm {
  background-color: var(--ta-color-button-warm);
  color: var(--ta-color-neutral-900) !important;
}

.ta-block-button--warm:hover,
a.ta-block-button--warm:hover {
  background-color: var(--ta-color-button-warm-hover);
  color: var(--ta-color-neutral-900) !important;
}

.ta-block-button--bright,
a.ta-block-button--bright {
  background-color: var(--ta-color-button-bright);
  color: var(--ta-color-neutral-900) !important;
}

.ta-block-button--bright:hover,
a.ta-block-button--bright:hover {
  background-color: var(--ta-color-button-bright-hover);
  color: var(--ta-color-neutral-900) !important;
}

.ta-block-button--full {
  width: 100%;
}

.ta-block-button--center {
  margin-inline: auto;
}

@media screen and (min-width: 1024px) {
  .ta-block-button,
  a.ta-block-button {
    padding-block: 20px;
    padding-inline: 40px;
    font-size: 20px;
  }
}

/* ---- section title (theme blocks/section-title.css, flattened) ---- */
.ta-block-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  text-align: center;
}

.ta-block-section-title > * {
  margin-block: 0;
}

.ta-block-section-title > *:last-child {
  font-size: 14px;
  line-height: 140%;
  color: var(--ta-color-neutral-400);
}

.ta-block-section-title > *:first-child,
.ta-block-section-title > *:only-child {
  font-size: 24px;
  font-weight: 900;
  color: var(--ta-color-neutral-900);
  line-height: 125%;
}

@media screen and (min-width: 1024px) {
  .ta-block-section-title > *:last-child {
    font-size: 20px;
  }

  .ta-block-section-title > *:first-child,
  .ta-block-section-title > *:only-child {
    font-size: 50px;
    line-height: 120%;
  }
}

/* ---- category pill (theme blocks/category-pill.css, flattened) ---- */
.posts a.ta-block-category-pill,
a.ta-block-category-pill,
.ta-block-category-pill {
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ta-color-neutral-900) !important;
  border-radius: 20px;
  background: var(--ta-color-neutral-100);
  text-decoration: none;
}

.ta-block-category-pills {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.ta-block-category-pills a.ta-block-category-pill {
  background-color: var(--ta-color-neutral-200);
}

.ta-block-category-pills a.ta-block-category-pill:hover {
  background-color: var(--ta-color-primary);
  color: var(--ta-color-neutral-100) !important;
}
